<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="java.util.List"%>
<%@page import="models.Course"%>
<%@page import="models.User"%>
<%@page import="service.UserDao"%>
<%@page import="org.hibernate.Session"%>
<%@page import="service.HibernateUtil"%>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <link href="style/general.css" type="text/css" rel="Stylesheet">
        <link href="/style/student.css" type="text/css" rel="Stylesheet"> 
        <link rel="stylesheet" href="style/slideshow.css" />
        <!-- include jQuery Library From Google Code -->
        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"></script>

        <!-- include jQuery UI  From Google Code-->
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"></script>

        <script src="js/jquery.rs.slideshow.js"></script>

        <script src="js/dynamic-controls-bootstrap.js"></script>

        <script type="text/javascript">
            $(document).ready(function(){
                $("#menu a").hover(function() {
                    $(this).stop().animate({ backgroundColor: "#4e88b2"}, 800);
                },function() {
                    $(this).stop().animate({ backgroundColor: "#504e4e" }, 800);
                });
				
            }); 
        </script>
                    <jsp:useBean id="inhoud" scope="application" class="models.Bean" />   
                    <jsp:setProperty name="inhoud" property="language" value="<%= models.Bean.getLanguage() %>" />
                <title>
                    Three 2 Learn | <jsp:setProperty name="inhoud" property="key" value="AddCourse" />
                                        <jsp:getProperty name="inhoud" property="key" />: ${course.name}
                </title>
                
                </head>
                <body>
                    
                    <div id="subcontainer">

                        <div id="wrapper">
                            <div id="header">
                                <div id="topmenu">
                                    <div id="topmenu">
                    <ul class="login">
                        <li><img src="style/logo32L.png"/></li>
                        <li><a href="/language?lang=nl" title="Nederlands"><img src="images/flags/nl.png"></a></li>
                        <li><a href="/language?lang=en" title="English"><img src="images/flags/uk.png"></a></li>
                        <c:choose>
                            <c:when test="${loggedin eq 'true'}">
                                <li><a href="/logout" id="toggleLogout" >
                                        <jsp:setProperty name="inhoud" property="key" value="LogOut" />
                                        <jsp:getProperty name="inhoud" property="key" />
                                    </a></li>
                            </c:when>
                            <c:otherwise>
                                <li><a href="#" id="toggleLogin" >
                                        <jsp:setProperty name="inhoud" property="key" value="Login" />
                                        <jsp:getProperty name="inhoud" property="key" />
                                    </a></li>
                            </c:otherwise>
                        </c:choose>
                        
                    </ul>
                </div>
                                                                 
                                    <ul class="login">
                                       
                                        <c:choose>
                                            <c:when test="${loggedin eq 'true'}">
                                                <li><a href="/logout" id="toggleLogout" >
                                                        <jsp:setProperty name="inhoud" property="key" value="LogOut" />
                                                        <jsp:getProperty name="inhoud" property="key" />
                                                    </a></li>
                                                </c:when>
                                                <c:otherwise>
                                                <li><a href="#" id="toggleLogin" >
                                                        <jsp:setProperty name="inhoud" property="key" value="Login" />
                                                        <jsp:getProperty name="inhoud" property="key" />
                                                    </a></li>
                                                </c:otherwise>
                                            </c:choose>
                                    </ul>

                                </div>
                                <div class="middle">
                                    <div id="menu">
                                        <ul>
                                            <li><a href="/index">
                                    <jsp:setProperty name="inhoud" property="key" value="Homepage" />
                                    <jsp:getProperty name="inhoud" property="key" />
                                </a></li>
                            <li><a href="courses.jsp">
                                    <jsp:setProperty name="inhoud" property="key" value="Courses" />
                                    <jsp:getProperty name="inhoud" property="key" />
                                </a></li>

                            <li><a href="three2Learn.jsp">Three2Learn</a></li>
                            <li><a href="information.jsp">

                                    <jsp:setProperty name="inhoud" property="key" value="Information" />

                                    <jsp:getProperty name="inhoud" property="key" />
                                </a></li>
                            <li><a href="faq.jsp">

                                    <jsp:setProperty name="inhoud" property="key" value="FAQ" />
                                    <jsp:getProperty name="inhoud" property="key" />
                                </a></li>

                            <li><a href="contact.jsp" class="lastItem">Contact</a></li>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                            <div id="context">

                                <h1><jsp:setProperty name="inhoud" property="key" value="AddCourse" />
                                    <jsp:getProperty name="inhoud" property="key" />
                                    : ${course.name}</h1>

                                <div id="course">
                                    <!--<h2></h2>
                                    <p><a href="#" onclick="newFolder();">create new folder</a></p>!-->
                                    
                                    <form name="paymentSettings" method="post" action="https://secure.ogone.com/ncol/test/orderstandard.asp"id=form1
                                          accept-charset="  "name=form1>
                                        <table width="100%" id="coursetable">
                                            <tr>
                                                <td>
                                                    <jsp:setProperty name="inhoud" property="key" value="CourseName" />
                                                    <jsp:getProperty name="inhoud" property="key" />
                                                    :
                                                </td>
                                                <td>
                                                    ${course.name}
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <jsp:setProperty name="inhoud" property="key" value="Language" />
                                                    <jsp:getProperty name="inhoud" property="key" />
                                                    :
                                                </td>
                                                <td>
                                                    ${course.language}
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <jsp:setProperty name="inhoud" property="key" value="Price" />
                                                    <jsp:getProperty name="inhoud" property="key" />
                                                    :
                                                </td>
                                                <td>
                                                    ${symbol}${price}
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                     <jsp:setProperty name="inhoud" property="key" value="BankNumber" />
                                                    <jsp:getProperty name="inhoud" property="key" />:
                                                </td>
                                                <td>
                                                    <input type="text" name="banknumber" />
                                                    <input type="hidden" name="courseID" value="${course.courseID}" />
                                                </td>           
                                            </tr>       -->        
                                                <tr><td><input type="submit" value="Pay"/></td></tr>        
                                        </table>     
                                    </form>                        
                                        
                                       <FORM METHOD="post" ACTION="https://secure.ogone.com/ncol/test/orderstandard.asp" id=form1 name=form1>    
                                               
                                </div>
                            </div>
                        </div>
                    </div>
                </body>
                </html>
